package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SHandselFlowerInfo extends Object implements IMessageBase
    {
        public var fromPlayerId:int;
        public var toPlayerName:String;
        public var type:int;
        public var itemCode:int;
        public var uid:String;
        public var miniPlayer:SPublicMiniPlayer;
        public const _type:int = 12072;
        public static var _regist:SHandselFlowerInfo = new SHandselFlowerInfo(true);

        public function SHandselFlowerInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SHandselFlowerInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.fromPlayerId);
            param1.writeString(this.toPlayerName);
            param1.writeInt(this.type);
            param1.writeInt(this.itemCode);
            param1.writeString(this.uid);
            this.miniPlayer.__write(param1);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.fromPlayerId = param1.readInt();
            this.toPlayerName = param1.readString();
            this.type = param1.readInt();
            this.itemCode = param1.readInt();
            this.uid = param1.readString();
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(param1);
            
        }

    }
}
